package com.example.qxfw.nyqx.service.impl;

import com.example.qxfw.common.entity.ny.AgriServiceIndex;
import com.example.qxfw.nyqx.mapper.AgriServiceIndexMapper;
import com.example.qxfw.nyqx.service.AgriServiceIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgriServiceIndexServiceImpl implements AgriServiceIndexService {

    @Autowired
    private AgriServiceIndexMapper agriServiceIndexMapper;

    @Override
    public List<String> getIndexName() {
        return agriServiceIndexMapper.selectIndexName();
    }

    @Override
    public List<AgriServiceIndex> getList(String indexName, String weatherLevel) {
        return agriServiceIndexMapper.selectList(indexName, weatherLevel);
    }
}
